﻿using System;
using Autodesk.Revit.UI;

namespace App
{
	internal class HYPretreatmentModelingApp : IExternalApplication
	{
		public Result OnStartup(UIControlledApplication application)
		{
			TeighaServices.TeighaServicesInstance.InitTeighaService(true);
			return Autodesk.Revit.UI.Result.Succeeded;
		}

		public Result OnShutdown(UIControlledApplication application)
		{
			TeighaServices.TeighaServicesInstance.InitTeighaService(false);
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
